package com.onlinevideo.dao;

import com.onlinevideo.entity.RoleAuthority;
import com.onlinevideo.entity.RoleAuthorityDTO;

import java.util.List;

public interface RoleAuthorityDao {

     int insert(RoleAuthority roleAuthority);

     int delete(Long id);

     List<RoleAuthorityDTO> queryByRoleId(Long roleId);

     List<RoleAuthority> queryAll();

     List<RoleAuthority> queryAllByStartIndexAndPageSize(Integer startIndex,Integer pageSize);
}
